<?php
session_start();
include ("../config/config.inc.php");
include ("../config/connect.inc.php");
include ("config/functions.inc.php");
$loginmanager = new loginmanager();
$loginmanager->check_login("Benutzer", true);
$navi = new Navigation("<a href=\"index.php?page=%page%\"><div class=\"links\">%title%</div></a>");
?>
<html>
	<head>
		<title>Kassenbuch</title>
		<link rel="stylesheet" href="../css/style.css" />
        <script src="http://code.jquery.com/jquery-latest.js"></script>
        <script language="javascript" type="text/javascript" src="../js/jquery-ui-1.8.20.custom.min.js"></script>
	</head>
	<body>
		<div id="site">
			<div id="header">
				Administration
			</div>
			<div id="body">
				<div id="navi">
                	<?php
						$navi->show_navigation_header("Men&uuml;");
						$navi->show_menu_item(new navigation_item(0, "Allgemein", "allgemein", "Benutzer"));
						$navi->show_links();
						$navi->show_menu_item(new navigation_item(0, "Logout", "logout", "Benutzer"));
						$navi->show_navigation_header("Kassenb&uuml;cher");
						$navi->show_cash_book_links();
					?>
				</div>
				<div id="content">
					<?php
					include_file();
					?>
                    <script type="text/javascript">
						$("select[name='change_rang']").change(function()
						{
							$(this).parent().submit();
						});
						$("#filter").change(function ()
						{
							$(this).parent().submit();
						});
					</script>
				</div>
				<div id="div_clear"></div>
			</div>
		</div>
	</body>
</html>